<template>
	<view class="my-container">
		<!-- 未登录时显示登录组件 -->
		<my-login v-if="!token"></my-login>
		<!-- 登录以后显示用户信息组件 -->
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import badgeMix from '../../mixins/tabBar-badge.js'
	import {mapState} from 'vuex'
	export default {
		mixins:[badgeMix],
		data() {
			return {
				
			};
		},
		computed:{
			...mapState('m_user',['token']),
		}
	}
</script>

<style lang="scss">
.my-container {
  height: 100%;
}
</style>
